﻿using Microsoft.AspNetCore.Routing;

namespace FrameworkCore.Mvc;

/// <summary>
/// 路由提供者接口
/// </summary>
public interface IRouteProvider
{
    /// <summary>
    /// 注册路由
    /// </summary>
    /// <param name="endpointRouteBuilder">路由建造器</param>
    void RegisterRoutes(IEndpointRouteBuilder endpointRouteBuilder);

    /// <summary>
    /// 获取路由提供者的优先级
    /// </summary>
    int Priority { get; }
}
